<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <LINK rel="Bookmark" href="/favicon.ico">
    <LINK rel="Shortcut Icon" href="/favicon.ico"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/Public/static/html5.js"></script>
    <script type="text/javascript" src="/Public/static/respond.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/PIE_IE678.js"></script>
    <![endif]-->
    <link href="/Public/Admin/css/manager/H-ui.min.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/manager/H-ui.admin.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/skin/default/skin.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/manager/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/common.css" rel="stylesheet" type="text/css"/>
    <link href="/Public/Admin/css/application.css" rel="stylesheet" type="text/css"/>
    <title>后台</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script type="text/javascript" src="/Public/static/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/Public/static/layer/layer.js"></script>
    <script type="application/javascript" src="/Public/static/form/jquery.validate.min.js"></script>
    <script type="application/javascript" src="/Public/static/form/localization/messages_zh.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/H-ui.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/H-ui.admin.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/common.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/jquery.raty.min.js"></script>
    <script type="text/javascript" src="/Public/Admin/js/timer.js"></script>
    <script type="text/javascript">
        $(function () {
            //搜索功能
            $("#search_layer").click(function () {
                layer.closeAll();
                layer.open({
                    type: 2,
                    title: 'id搜索工具',
                    shadeClose: true,
                    shade: false,
                    maxmin: true, //开启最大化最小化按钮
                    area: ['650px', '550px'],
                    content: '<?php echo U("/Admin/Doctor/NRDoctor/search");?>'
                });
            });
        })
    </script>
</head>
<body>

    <nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i>首页
        <span class="c-gray en">&gt;</span>档案管理
        <span class="c-gray en">&gt;</span>县总管理
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px;margin-right:20px" href="javascript:location.replace(location.href);" title="刷新" >
            <i class="Hui-iconfont">&#xe68f;</i>
        </a>
    </nav>

    <div class="page-container pd-20">
        <div class="cl pd-5 bg-1 bk-gray mt-20">
            <span class="l">
                <?php if(isset($actions['SALEMANAGERCOUNTYADD'])): ?><a href="javascript:;" onclick="admin_add('新增数据', '<?php $str = $Think.ADMIN_PATH_NAME.$actions['SALEMANAGERCOUNTYADD']['url'];echo U($str,array('key'=>$actions['SALEMANAGERCOUNTYADD']['key'],'type'=>1,'order_id'=>$order_id))?>', '1024', '500')" class="btn btn-primary radius">
                        <i class="Hui-iconfont">&#xe600;</i> 新增数据
                    </a><?php endif; ?>
                 <?php if(isset($actions['SALEMANAGERCOUNTYEXCELIMPORT'])): ?><a href="javascript:;" onclick="admin_add('Excel导入', '<?php $str = $Think.ADMIN_PATH_NAME.$actions['SALEMANAGERCOUNTYEXCELIMPORT']['url'];echo U($str,array('key'=>$actions['SALEMANAGERCOUNTYEXCELIMPORT']['key'],'type'=>excel,'order_id'=>$order_id))?>', '1024', '300')" class="btn btn-primary radius">
                        <i class="Hui-iconfont">&#xe600;</i> Excel导入
                    </a><?php endif; ?> 
            </span>
            <span class="r">共有数据：<strong><?php echo ($_total); ?></strong> 条</span>
        </div>
        <table class="table table-border table-bordered table-bg">
            <thead>
                <tr>
                    <th scope="col" colspan="13">县总列表</th>
                </tr>
                <tr class="text-c">
                    <th width="25"><input type="checkbox" name="" value=""></th>
                    <!-- <th>id</th> -->
                    <th >头像</th>
                    <th >手机号</th>
                    <th >姓名</th>
                    <th>身份证</th>
                    <th>身份证正面</th>
                    <th>身份证反面</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>所属县</th>
                    <th>工作事项</th>
                    <th>状态</th>  
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr class="text-c">
                    <td><input type="checkbox" value="<?php echo ($v["id"]); ?>" name=""></td>
                   <!--  <td><?php echo ($v["id"]); ?></td> -->
                    <td>
                    	<?php if( $v["head_img"] == '' ): ?>暂无
                    		<?php else: ?><img src='<?php echo ($v["head_img"]); ?>' height='30px'><?php endif; ?></td>
                    <td><?php echo ($v["phone"]); ?></td>
                    <td><?php echo ($v["real_name"]); ?></td>
                    <td><?php echo ($v["card_number"]); ?></td>
                    <td> 	
                    <?php if( $v["card_front_img"] == '' ): ?>暂无
                    		<?php else: ?><img src='<?php echo ($v["card_front_img"]); ?>' height='30px'><?php endif; ?></td>
                    <td> 	<?php if( $v["card_back_img"] == '' ): ?>暂无
                    		<?php else: ?><img src='<?php echo ($v["card_back_img"]); ?>' height='30px'><?php endif; ?></td>
                    <td><?php if($v["sex"] == '1'): ?>男
							<?php else: ?> 女<?php endif; ?>
					</td>
                    <td><?php echo ($v["age"]); ?></td>
                    <td><?php echo ($v["manage_locations"]); ?></td>
                    <td><?php echo ($v["work_event"]); ?></td>
                   <td>
                   <?php if($v["status"] == '0'): ?>启用
						<?php elseif($v["status"] == '1'): ?>禁用
						<?php else: ?> 删除<?php endif; ?>
                    <td class="td-manage">
                <?php if(isset($actions['SALEMANAGERCOUNTYEDIT'])): ?><a title="编辑" href="javascript:;" onclick="admin_edit('数据编辑', '<?php $str = $Think.ADMIN_PATH_NAME.$actions['SALEMANAGERCOUNTYEDIT']['url'];echo U($str,array('key'=>$actions['SALEMANAGERCOUNTYEDIT']['key'],'ad_id'=>$v['ad_id'],'id'=>$v['id']))?>', '1', '800', '500')" class="ml-5" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6df;</i>
                    </a><?php endif; ?>
                <?php if(isset($actions['SALEMANAGERCOUNTYDEL'])): ?><a title="删除" href="javascript:;" onclick="admin_del(this, '<?php $str = $Think.ADMIN_PATH_NAME.$actions['SALEMANAGERCOUNTYDEL']['url'];echo U($str,array('key'=>$actions['SALEMANAGERCOUNTYDEL']['key'],'id'=>$v['id']))?>', '1')" class="ml-5" style="text-decoration:none">
                        <i class="Hui-iconfont">&#xe6e2;</i>
                    </a><?php endif; ?>
                </td>
                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
            </tbody>
        </table>
         <!-- 分页 -->
        <div class="page">
            <?php echo ($page); ?>
        </div>
    </div>
    <script type="text/javascript">
        /*
         参数解释：
         title	标题
         url		请求的url
         id		需要操作的数据id
         w		弹出层宽度（缺省调默认值）
         h		弹出层高度（缺省调默认值）
         */
        /*管理员-增加*/
        function admin_add(title, url, w, h){
        layer_show(title, url, w, h);
        }
        /*管理员-删除*/
        function admin_del(obj, url){
        layer.confirm('确认要删除吗？', function(index){
        //此处请求后台程序，下方是成功后的前台处理……
        layer.load(1, {
        shade: [0.1, '#fff'] //0.1透明度的白色背景
        });
        $.get(url, function(json){
        layer.closeAll('loading');
        if (json.code == 1)
        {
        layer.closeAll();
        $(obj).parents("tr").remove();
        layer.msg('已删除!', {icon:1, time:1000});
        } else{
        layer.msg(json.msg);
        }
        }, "json");
        });
        }
        /*管理员-编辑*/
        function admin_edit(title, url, id, w, h){
        layer_show(title, url, w, h);
        }
    </script>
</body>
</html>